define(function(require, exports) {
	var c1 = require('c1');

	var c1Page = {};

	c1Page = {
		init : function() {
			var message = $('#message').html();

			if (message != '') {
				alert(message);

				return;
			}

			var callback = $('input[name="callback"]').val();

			var fileUrl = $('input[name="fileUrl"]').val();

			window.parent.CKEDITOR.tools.callFunction(callback, fileUrl);
		}
	};

	return {
		init : c1Page.init
	};
});